//package com.rest.demo.Service;
//
//import okhttp3.*;
//import org.springframework.stereotype.Service;
//
//import java.io.IOException;
//
//@Service
//public class Postdemo {
//    public void Posttoken(String Code) throws IOException {
//        OkHttpClient client = new OkHttpClient().newBuilder()
//                .build();
//        MediaType mediaType = MediaType.parse("application/json; charset=utf-8");
//        RequestBody body = RequestBody.create(mediaType, "");
//        Request request = new Request.Builder()
//                .url("https://auths-test.dysmt.cn/oauth/token?code=" + Code + "&client_id=057ffa4052294d45af9b9bac69dc4c8d&client_secret=2faa6ccb0ca94bfc84222a8c7aa31c5c&grant_type=authorization_code&redirect_uri=http://127.0.0.1/test")
//                .method("POST", body)
//                .build();
//        Response response = client.newCall(request).execute();
//        System.out.println(response.headers());
//        System.out.println(response.body().contentType());
//    }
//
//
//
//
//}
